home *** CD-ROM | disk | FTP | other *** search
- property pH, pMove
-
- on beginSprite me
- set pH to the locH of sprite the spriteNum of me
- set pMove to float(260) / float(the duration of member "NATURE")
- end
-
- on exitFrame me
- set the locH of sprite the spriteNum of me to (the movieTime of sprite 5 * pMove) + pH
- updateStage()
- end
-
- on mouseDown me
- repeat while the stillDown
- if (the mouseH < 454) and (the mouseH > 187) then
- set the locH of sprite the spriteNum of me to the mouseH
- set mf to (the locH of sprite the spriteNum of me - pH) / pMove
- set the movieTime of sprite 5 to mf
- updateStage()
- next repeat
- end if
- if the mouseH < 187 then
- set the locH of sprite the spriteNum of me to 187
- end if
- if the mouseH > 454 then
- set the locH of sprite the spriteNum of me to 454
- end if
- end repeat
- end
-